<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta content="always" name="referrer">
<meta name="format-detection" content="telephone=no" />
<meta name="viewport"
	content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>首页</title>
<script type="text/javascript" src="/LianniuWeb/tea/js/jquery-1.11.3.min.js"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="/LianniuWeb/js/commons/commons.js"></script>
</head>

<body>
	<script type="text/javascript">
		$(function(){
			//localStorage.clear();
			var openid = localStorage.getItem("openid");
			//alert(openid);
			if(openid){
				//alert("直接进入没有经过授权");
				localStorage.setItem(localStorage.getItem("username"),"1");
				//localStorage.setItem("userid",openid);
				window.location.href=server_url+"buyer/product/index.do";
			}else{
				window.location = "https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appId+"&redirect_uri=http://www.nashannacha.com/LianniuWeb/openId.do&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; 
			}
		});
	</script>
</body>

</html>